package org.mics.cyy.modular.notice.request;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 公告类型请求
 * @author mics
 * @date 2023-10-10
 * @version  1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(description = "公告类型请求")
public class NoticeTypeRequest  implements Serializable{
	/**
	 * 序列号
	 */
	private static final long serialVersionUID = -3243691503647472008L;
	
	@Schema(description = "id，新增不传修改传")
	private String id;
	
	@Schema(description = "类型名称",required = true)
	@NotBlank(message = "类型名称不能为空")
	@Size(min=2,max=32,message = "类型名称长度2-32位")
	private String name;
}
